home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
mint
/
lib
/
mlib41d.zoo
/
diffc
next >
Wrap
Text File
|
1993-11-01
|
25KB
|
835 lines
*** 40.1 1993/10/30 08:59:36
--- nlist.c 1993/10/31 09:10:58
***************
*** 31,37 ****
if( !symread )
{
symread=min(sizeof(symbuf),symcount);
! if(symread!=read(sym_fd,symbuf,symread))
{
close(sym_fd);
symread=0;
--- 31,37 ----
if( !symread )
{
symread=min(sizeof(symbuf),symcount);
! if((int)symread != read(sym_fd,symbuf, (int)symread))
{
close(sym_fd);
symread=0;
***************
*** 76,82 ****
if( ( sym_fd=open(file,O_RDONLY) ) == -1 ) return -1;
/* Read in file header */
! read(sym_fd,&hbuf,sizeof(hbuf));
/* Executable file ? */
if(A_BADMAG(hbuf))
--- 76,82 ----
if( ( sym_fd=open(file,O_RDONLY) ) == -1 ) return -1;
/* Read in file header */
! read(sym_fd,&hbuf,(int) sizeof(hbuf));
/* Executable file ? */
if(A_BADMAG(hbuf))
***************
*** 87,93 ****
}
/* Any symbols? */
! if( !(symcount=hbuf.a_syms) )
{
errno=EDOM;
return -1;
--- 87,93 ----
}
/* Any symbols? */
! if((symcount=hbuf.a_syms) == 0)
{
errno=EDOM;
return -1;
*** 40.1 1993/10/30 08:59:36
--- qsort.c 1993/10/31 08:56:30
***************
*** 21,37 ****
#include <string.h>
#include <memory.h>
#ifdef __GNUC__
# ifdef minix
void *alloca(unsigned long);
typedef unsigned long size_t;
# endif
! # define INLINE inline
#else
# define INLINE /* */
- #endif
- #ifndef _COMPILER_H
- #include <compiler.h>
#endif
/* macros for incrementing/decrementing void pointers */
--- 21,42 ----
#include <string.h>
#include <memory.h>
+ #ifndef _COMPILER_H
+ #include <compiler.h>
+ #endif
+
#ifdef __GNUC__
# ifdef minix
void *alloca(unsigned long);
typedef unsigned long size_t;
# endif
! # ifdef __GNUC_INLINE__
! # define INLINE inline
! # else
! # define INLINE /* */
! # endif
#else
# define INLINE /* */
#endif
/* macros for incrementing/decrementing void pointers */
*** 40.1 1993/10/30 08:59:36
--- strerror.c 1993/10/31 11:24:54
***************
*** 96,106 ****
"range error", /* 88 */
"domain error", /* 89 */
"I/O error", /* 90 */
! "disk full" /* 91 */
};
int sys_nerr = (int)(sizeof(sys_errlist)/sizeof(sys_errlist[0]));
/*
* strerror - map error number to descriptive string
*
--- 96,160 ----
"range error", /* 88 */
"domain error", /* 89 */
"I/O error", /* 90 */
! "disk full", /* 91 */
! nullstr, /* 92 */
! nullstr, /* 93 */
! nullstr, /* 94 */
! nullstr, /* 95 */
! nullstr, nullstr, nullstr, nullstr, nullstr, /* 96 - 100 */
! nullstr, nullstr, nullstr, nullstr, nullstr, /* 101 - 105 */
! nullstr, nullstr, nullstr, nullstr, nullstr, /* 106 - 110 */
! nullstr, nullstr, nullstr, nullstr, nullstr, /* 111 - 115 */
! nullstr, nullstr, nullstr, nullstr, nullstr, /* 116 - 120 */
! nullstr, nullstr, nullstr, nullstr, nullstr, /* 121 - 125 */
! nullstr, /* 126 */
! nullstr, /* 127 */
! "interrupted system call" /* 128 */
};
int sys_nerr = (int)(sizeof(sys_errlist)/sizeof(sys_errlist[0]));
+ #ifdef __MINT__
+
+ /* Support for Kay Roemer's socket library */
+
+ char *_sock_errlist[] = {
+ "Socket operation on non-socket", /* 300 */
+ "Destination address required",
+ "Message too long",
+ "Protocol wrong type for socket",
+ "Protocol not available",
+ "Protocol not supported",
+ "Socket type not supported",
+ "Operation not supported",
+ "Protocol family not supported",
+ "Address family not supported by protocol",
+ "Address already in use",
+ "Cannot assign requested address",
+ "Network is down",
+ "Network is unreachable",
+ "Network dropped conn. because of reset",
+ "Software caused connection abort",
+ "Connection reset by peer",
+ "Socket is already connected",
+ "Socket is not connected",
+ "Cannot send after shutdown",
+ "Connection timed out",
+ "Connection refused",
+ "Host is down",
+ "No route to host",
+ "Operation already in progress",
+ "Operation now in progress",
+ "Operation would block"
+ };
+
+ int _sock_nerr = (int)(sizeof (_sock_errlist) / sizeof (char *));
+
+ #define MINSOCKERR 300
+ #define MAXSOCKERR (MINSOCKERR + _sock_nerr)
+
+ #endif
+
/*
* strerror - map error number to descriptive string
*
***************
*** 115,120 ****
--- 169,178 ----
if (errnum >= 0 && errnum < sys_nerr)
return(sys_errlist[errnum]);
+ #ifdef __MINT__
+ else if (errnum >= MINSOCKERR && errnum < MAXSOCKERR)
+ return(_sock_errlist[errnum - MINSOCKERR]);
+ #endif
else
return(nullstr);
}
*** 40.1 1993/10/30 08:59:36
--- utime.c 1993/10/31 09:11:24
***************
*** 135,141 ****
date = (int) (dtime & 0xffff);
time = (int) (dtime >> 16) & 0xffff;
! if ((r = Tsetdate(date)) || (r = Tsettime(time))) {
errno = r == -1 ? EBADARG : (int) -r;
return -1;
}
--- 135,141 ----
date = (int) (dtime & 0xffff);
time = (int) (dtime >> 16) & 0xffff;
! if (((r = Tsetdate(date)) != 0) || ((r = Tsettime(time)) != 0)) {
errno = r == -1 ? EBADARG : (int) -r;
return -1;
}
*** 40.1 1993/10/30 08:59:36
--- wcmb.c 1993/10/31 09:11:26
***************
*** 31,37 ****
if(mbstr == NULL) mbstr = "";
! while(revcnt && (*wstr++ = *mbstr++)) revcnt--;
return maxlen - revcnt;
}
--- 31,37 ----
if(mbstr == NULL) mbstr = "";
! while(revcnt && ((*wstr++ = *mbstr++) != 0)) revcnt--;
return maxlen - revcnt;
}
***************
*** 62,68 ****
if(wstr == NULL) wstr = _wnull; /* Better avoid L"". */
! while(revcnt && (*mbstr++ = (char) *wstr++)) revcnt--;
return maxlen - revcnt;
}
--- 62,68 ----
if(wstr == NULL) wstr = _wnull; /* Better avoid L"". */
! while(revcnt && ((*mbstr++ = (char) *wstr++) != 0)) revcnt--;
return maxlen - revcnt;
}
*** 40.1 1993/10/30 08:59:36
--- wcscat.c 1993/10/31 09:11:30
***************
*** 19,25 ****
{
for (dscan = dst; *dscan; dscan++)
continue;
! while ((*dscan++ = *sscan++))
continue;
}
return(dst);
--- 19,25 ----
{
for (dscan = dst; *dscan; dscan++)
continue;
! while ((*dscan++ = *sscan++) != 0)
continue;
}
return(dst);
***************
*** 43,49 ****
for (dscan = dst; *dscan; dscan++)
continue;
count = n;
! while ((c = *sscan++) && --count >= 0)
*dscan++ = c;
*dscan = 0;
}
--- 43,49 ----
for (dscan = dst; *dscan; dscan++)
continue;
count = n;
! while (((c = *sscan++) != 0) && --count >= 0)
*dscan++ = c;
*dscan = 0;
}
*** 40.1 1993/10/30 08:56:04
--- Changelog 1993/11/01 22:31:34
***************
*** 4,9 ****
--- 4,144 ----
Changes are listed in *reverse* order, most recent changes being
first.
+ PATCHLEVEL41::
+
+ ***** nlist.c
+ ----------------------------
+ revision 40.2
+ date: 1993/10/31 09:24:14; author: hohmuth; state: Exp; lines: +3 -3
+ add a few typecasts for __MSHORT__
+ =============================================================================
+ ***** qsort.c
+ ----------------------------
+ revision 40.2
+ date: 1993/10/31 08:58:56; author: jrb; state: Exp; lines: +9 -4
+ adjust order of inclusion of compiler.h so that INLINE may be
+ conditionally overriden even when __GNUC__
+ =============================================================================
+ ***** strerror.c
+ ----------------------------
+ revision 40.2
+ date: 1993/10/31 11:33:36; author: entropy; state: Exp; lines: +59 -1
+ Add support for the socket lib.
+ =============================================================================
+ ***** utime.c
+ ----------------------------
+ revision 40.2
+ date: 1993/10/31 09:25:04; author: hohmuth; state: Exp; lines: +1 -1
+ make assignments used as truth values clearer, to avoid
+ spurious warnings
+ =============================================================================
+ ***** wcmb.c
+ ----------------------------
+ revision 40.2
+ date: 1993/10/31 09:25:16; author: hohmuth; state: Exp; lines: +2 -2
+ make assignments used as truth values clearer, to avoid
+ spurio